<include file="public@head_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>
<include file="public@sidebar_head"/>

<div class="newsDetailW">
    <div class="newsDetailH">
        <h2>{$article.post_title}</h2>
        <p>
          <i class="fa fa-calendar"></i> {$configlang['release_time']}{$configlang['mh']}{:date('Y-m-d H:i',$article.published_time)} &nbsp;&nbsp; 
          <i class="fa fa-eye"></i> {$configlang['Views']}{$configlang['mh']}{$article.post_hits}
        </p>
    </div>
    <div class="newsDetailCont">
        <div class="imgadvflash">
          <ul class="imgslider">
            <notempty name="article['more']['photos']">
                <foreach name="article['more']['photos']" item="vo">
                    <li><img src="/upload/{$vo.url}" alt="{$vo.post_title}" /></li>        
                </foreach>
            <else>
            	<li><img src="/themes/simpleboot3/public/assets/temp/product_ch_img4.jpg" alt="{$vo.post_title}" /></li> 
                <li><img src="/themes/simpleboot3/public/assets/temp/product_ch_img3.jpg" alt="{$vo.post_title}" /></li> 
            </notempty>
          </ul>
        </div>
        <div class="st-blank30 st-xd-blank15"></div>
		<if condition="$article.parainfohtml">
          {$article.parainfohtml}
		  <div class="st-blank30 st-xd-blank15"></div>
        </if>
        <notempty name="contenthtml">
            {$contenthtml}
        <else/>
            <div class="st-x-showpc">{$article.post_content|default=''}</div>
            <div class="st-x-showmobile">
              <notempty name="article.contentmobile">{$article.contentmobile|stzhtml}<else/>{$article.post_content|default=''}</notempty>
            </div>
        </notempty>
        
        <style>@media (max-width:991px){
			.relrecBlock ul li:nth-last-child(1){ display:none;}
		}
		</style>      
         <div class="relrecBlock st-listBlock st-flashBlock st-listBlockFPX5">
             <ul class="st-flexBox st-xd-blockFPX5">
             <php>
              $where = [
                'recommended' => 1
              ];
              </php>
              <portal:articles limit="10" order="post.post_hits DESC" where="$where" categoryIds="$category.id">
                <li class="st-wid20 st-xd-box33 st-padlr5 st-mb15">
				<div class="st-posr">
					<a class="st-boxmax st-disb st-imgBox st-imgBox100" href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}">
                    <empty name="vo.img_thumb">
                        <img class="st-box" src="__TMPL__/public/assets/images/default-thumbnail.png"
                             alt="{$vo.post_title}">
                        <else/>
                        <img class="st-box" src="{:cmf_get_image_url($vo.img_thumb)}"
                             alt="{$vo.post_title}">
                    </empty>
					</a>
					<div class="st-posa st-bottom0 st-wid100" style=" background-color: rgba(0,0,0,.5);">
					  <h3 class="st-titItem32 st-xd-titItem28 st-texc"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}" class="st-colf">{$vo.post_title}</a></h3>
					</div>
				</div>
                </li>
                </portal:articles>
             </ul>
           </div>
           <div class="st-blank15"></div>
        
       <php>
            $after_content_hook_param=[
            'object_id'=>$article['id'],
            'table_name'=>'portal_post',
            'object_title'=>$article['post_title'],
            'user_id'=>$article['user_id'],
            'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
            'object'=>$article
            ];
        </php>
        <hook name="after_content" param="after_content_hook_param"/>
        
        <notempty name="taglist">
        <p>
            {$configlang['label']}:&nbsp&nbsp
            <foreach name="taglist" item="vo">
             <a href="{:cmf_url('portal/Tag/index',array('id'=>$configinfo.moduleid,'tid'=>$vo.tag_id))}" title="{$vo.name}">{$vo.name}</a> | 
            </foreach>
         </p>
         </notempty>
    </div>
    
    <div class="jump">
        <p>
        	<if condition="$prev_article.post_title">
        	<a title="{$prev_article['post_title']}" href="{:cmf_url('portal/Article/index',array('id'=>$prev_article.id,'cid'=>$prev_article['category_id']))}">
                <span>{$configlang['PreviousPiece']}{$configlang['mh']}</span>
                {$prev_article['post_title']}
            </a>
            <else/>
            <a><span>{$configlang['PreviousPiece']}{$configlang['mh']}</span> {$configlang['No_more']}</a>
            </if>
        </p>
        <p>
        	<if condition="$next_article.post_title">
        	<a title="{$next_article['post_title']}" href="{:cmf_url('portal/Article/index',array('id'=>$next_article.id,'cid'=>$next_article['category_id']))}">
                <span>{$configlang['NextPiece']}{$configlang['mh']}</span>
                {$next_article['post_title']}
            </a>
            <else/>
            <a><span>{$configlang['NextPiece']}{$configlang['mh']}</span> {$configlang['No_more']}</a>
            </if>
        </p>
    </div>
    
    <style>
	.relinfoBlock dl dt{ width:135px;}
	.relinfoBlock dl dd{ width:calc(100% - 135px);}
	@media (max-width:991px){
			.relinfoBlock dl dt{ width:120px;}
			.relinfoBlock dl dd{ width:calc(100% - 120px);}
		}
		</style>
    <div class="showDetailInner">
        <h2><span>{$configlang['related_info']}</span></h2>
        <div class="showDetailInnerW">
           <div class="relinfoBlock st-block st-flashBlock">
             <div class="st-flexBox">
              <portal:articles limit="10" order="post.post_hits DESC" categoryIds="$category.id">
                <dl class="st-flexBox st-wid100 st-mb15 st-xd-mb10 st-borb st-pb10">
                <dt class="st-boxmax"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}">
                    <empty name="vo.img_thumb">
                        <img class="st-box" src="__TMPL__/public/assets/images/default-thumbnail.png"
                             alt="{$vo.post_title}">
                        <else/>
                        <img class="st-box" src="{:cmf_get_image_url($vo.img_thumb)}"
                             alt="{$vo.post_title}">
                    </empty>
                </a></dt>
                <dd class="st-pl15">
                  <h3 class="st-titItem45 st-xd-titItem32"><a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$vo['category_id']))}" title="{$vo.post_title}">{$vo.post_title}</a></h3>
                  <p class="st-texItem42 st-xd-texItem38 st-mt5">{$vo.post_excerpt}</p>
                  <p class="st-col9 st-mt5"><i class="fa fa-calendar"></i>
                    {:date('Y-m-d',$vo.published_time)}

                    <i class="fa fa-eye"></i>
                    {$vo.post_hits}</p>
                </dd>
                </dl>
                </portal:articles>
             </div>
           </div>
        </div>
    </div>
    
    <div class="newsLink">
        {$site_info.sharehtml|stzhtml}
    </div>
    
    
</div>

<include file="public@sidebar_foot"/>                  
<include file="public@footer"/>
</body>    
</html>